package com.zc;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author 曾川
 * @version 1.0.0
 * @ClassName com.zc.Application.java
 * @Description TODO
 * @createTime 2021年06月29日 09:55:00
 */
@SpringBootApplication
//扫描mybatis 通用 mapper的包路径
@MapperScan( basePackages = "com.zc.mapper")
//扫描所有包以及相关组件包
@ComponentScan( basePackages = {"com.zc" , "org.n3r.idworker"})
//@EnableTransactionManagement
@EnableScheduling           //开启定时任务
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
